import 'package:flutter/material.dart';

class ImageWidget extends StatelessWidget {

  final double width;
  final double height;
  final String scr;

  ImageWidget({super.key, this.width=double.infinity, this.height=200, required this.scr});

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      width: width,
      height: height,
      child: Image.network(scr, fit: BoxFit.cover),
    );
  }
}
